package a.f.g.a;

import a.c.d;
import a.c.e;
import a.c.m;

class wb
  implements nc
{
  private int b = 1;
  
  public int a()
  {
    return this.b;
  }
  
  public void a(int paramInt)
  {
    this.b = paramInt;
  }
  
  public y a(cb paramcb, bb parambb, f paramf)
  {
    boolean bool = xb.r;
    int i = xb.q;
    e locale1 = paramcb.p();
    y localy1 = paramcb.a();
    paramf.a();
    m localm = locale1.l();
    label309:
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      e locale2 = locald.a(locale1);
      if (locale2 != locale1)
      {
        lb locallb = parambb.d();
        cb localcb = locallb.a(locale2);
        double d1 = locallb.a(locald).b();
        y localy2 = localcb.a();
        double d2 = localy2.d() - localy1.d();
        double d3 = localy2.f() - localy1.f();
        double d4 = localy2.g() - localy1.g();
        double d5 = Math.sqrt(d2 * d2 + d3 * d3 + d4 * d4);
        if ((bool) || (d5 >= 0.001D))
        {
          if (!bool) {
            if (d1 == 0.0D) {
              d1 = 0.001D;
            }
          }
          switch (this.b)
          {
          case 1: 
            d6 = 1.0D / d1;
            if (!bool) {
              if (i == 0) {
                break label309;
              }
            }
          case 2: 
            if (!bool)
            {
              d6 = d5 / (d1 * d1);
              if (i == 0) {
                break label309;
              }
            }
            break;
          }
          double d6 = k.a(d5 / d1, this.b) / d5;
          paramf.a(d2 * d6, d3 * d6, d4 * d6);
        }
      }
      localm.f();
    } while (i == 0);
    return paramf;
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.g.a.wb
 * JD-Core Version:    0.7.0.1
 */